From 82568d02e01c2d2ca0a305cf86e21e05ad7bdf89 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 27 Dec 2007 12:09:06 +0000 Subject: [PATCH] Fir the patch from bug #504886 not to read unitialised memory. 2007-12-27 Christian Persch * gdk/x11/gdkscreen-x11.c: (init_randr12): Fir the patch from bug #504886 not to read unitialised memory. svn path=/trunk/; revision=19247 --- ChangeLog | 5 +++++ gdk/x11/gdkscreen-x11.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1594cf672d..17726636ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-27 Christian Persch + + * gdk/x11/gdkscreen-x11.c: (init_randr12): Fir the patch from + bug #504886 not to read unitialised memory. + 2007-12-26 Xan Lopez * gtk/gtkstatusbar.c (has_extra_children): take into account the diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 5c1f36e5db..9fd56dde06 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -684,7 +684,7 @@ init_randr12 (GdkScreen *screen) return FALSE; monitors = g_array_sized_new (FALSE, TRUE, sizeof (GdkX11Monitor), - monitors->len); + resources->noutput); for (i = 0; i < resources->noutput; ++i) { -- 2.30.2